home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 September / maximum-cd-2000-09.iso / Vampire the Masquerade / vampire_demo.exe / Codex.nob / ClassWraith.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-22  |  1.0 KB  |  24 lines

  1. public class ClassWraith extends Codex {
  2.    public void created(int guid) {
  3.       CodexThing spectralThing = new CodexThing(((Codex)this).GetClassThing());
  4.       if (spectralThing != null) {
  5.          int trailGuid = spectralThing.SpawnThing("trail_spectral");
  6.          int rfingersGuid = spectralThing.SpawnThing("trail_spectralHands");
  7.          int lfingersGuid = spectralThing.SpawnThing("trail_spectralHands");
  8.          int boneNum0 = spectralThing.FindBone(35);
  9.          int boneNum1 = spectralThing.FindBone(25);
  10.          int boneNum2 = spectralThing.FindBone(30);
  11.          float[] offset0 = new float[3];
  12.          float[] offset1 = new float[3];
  13.          float[] offset2 = new float[3];
  14.          offset0 = spectralThing.FindBoneOffset(35);
  15.          offset1 = spectralThing.FindBoneOffset(25);
  16.          offset2 = spectralThing.FindBoneOffset(30);
  17.          spectralThing.AttachThing(trailGuid, boneNum0, offset0, 1);
  18.          spectralThing.AttachThing(rfingersGuid, boneNum1, offset1, 1);
  19.          spectralThing.AttachThing(lfingersGuid, boneNum2, offset2, 1);
  20.       }
  21.  
  22.    }
  23. }
  24.